﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MiniStock.Infrastructure
{
    public interface IRepository<T>: IQueryable<T>, IDisposable
    {
        bool BatchCommit { get; set; }

        T Add(T item);
        T Update(T item);
        void Delete(T item);

        void Commit();
    }
}
